import request from '@/utils/request'

// 查询参数数据
export function getParameter(params) {
  return request({
    url: '/solarProtectParam/queryByCode',
    method: 'get',
    params
  })
}
export function getSafetyParameter(params) {
  return request({
    url: '/solarSafetyParam/queryByCode',
    method: 'get',
    params
  })
}
// 获取国家
export function getAllCountry(params) {
  return request({
    url: '/stationBoard/getCountryWithParameter',
    method: 'get',
    params
  })
} 
// 参数下发
export function paramDelivery(data){
  return request({
    url:'stationBoard/paramDelivery',
    method:'POST',
    data
  })
}

export function getSafetyParamByFirmwares(params) {
  return request({
    url: '/solarSafetyParam/getSafetyParamByFirmware',
    method: 'get',
    params
  })
}

export function getProtectParamByFirmwares(params) {
  return request({
    url: '/solarProtectParam/getProtectParamByFirmware',
    method: 'get',
    params
  })
}
